#ifndef _TIMER_UTIL_H
#define _TIMER_UTIL_H

#include <stdint.h>
#include <stdbool.h>


#define TIMER_TICK_PERIOD   10

typedef void (*cbTimerEvent)(uint16_t id);

bool CreateTimer(uint16_t id, uint32_t span, cbTimerEvent cb);
void RestartTimer(uint16_t id, uint32_t span);
void DestroyTimer(uint16_t id);
void OnTimerTick(void);
#endif
